Home

Getting Started

*Defaults

  All Gadget have a default setting. Setting default colors,sizes and positions for gadget Can save time when creating new gadgets. For example, A if the defaut color for a Template is set to blue all Templates will be set with the color blue when created. Defaults are not part of the api language because it is much quicker to edit each type indevidually. The #include. File named "Default can be edited manually."

  GetTemplateBgImage(ID)   Returns Background ID or -1.

  GetTemplateHeight(ID)   Returns Height.

  GetTemplateWidth(ID)   Returns Width.

  SetTemplateBgColor(ID,Color)   `Accepts color from makecolor(),Sets Background color of sprite, Accepts Alpha value.

  SetTemplateBGImage(ID,ImageID)   `Accepts Integer, Sets Background image.

  SetTemplateBorderWidth(ID,Width)   `Accepts Integer, Sets Border Width.

  SetTemplateDragAndDrop(ID,Bool)   ` Accepts Integer 1-0, 1 enalbes Template to be dropped onto other gadgets, 0 false.

  SetTemplateHoverState(ID)   Returns 1 if Template is being hovered, else 0.

  SetTemplateVisible(ID,Boolean)   `Sets Template visible or hidden 1 visible, 0 hidden.

  GetTemplateText(ID)   Returns Text String or -1

  SetTemplateDepth(ID,Depth)   Accepts Integer, Forces Template to add or subtract depth to its depth sorting.

  SetTemplateHeight(ID,Height)   `Accepts integer sets the height.

  SetTemplateWidth(ID,Width)   Accepts integer sets the width.

  SetTemplateSize(ID,Width,Height)   Accepts integer sets the width and height.

  SetTemplatePaddingWidth(ID,Width)   `Accepts Integer, Sets Padding Width.

  SetTemplatePaddingColor(ID,Color)   `Accepts color from makecolor(),Sets Padding color of sprite, Accepts Alpha value.

  SetTemplateBorderColor(ID,Color)   `Accepts color from makecolor(),Sets Border color of sprite, Accepts Alpha value.

  SetTemplateColor(ID,Integer)   `Accepts color from makecolor(), Sets entire sprite to specified color.

  SetTemplateAlpha(ID,AlphaValue)   `Accepts integer 0-255, Sets entire Sprite to the specified alpha value

  SetTemplateEditMode(ID,Bool)   `Accepts Integer 1-0, overides settings enables all api features,"Template action will be disabled while in edit mode"

  SetTemplateToolTip(ID,String)   Accepts String, Sets Template to generate and destroy a tooltip preview on hover. Hover Must be enabled see SetTemplateActivateHover(ID,Bool)

  SetTemplateDrag(ID,Bool)   `Accepts integer 0-1,Enables Dragging

  SetTemplateResize(ID,Bool)   `Accepts integer 0-1,Enables Resizing

 SetTemplateActivateMode(ID,Bool)   `Accepts integer 0-1, (1) Enables Hover to activate, "0" Default Behavior

  SetTemplateHighlight(ID,Bool)   `Accepts Integer 1-0, Enables Highlighting